﻿<!doctype html>
<html>
	<!-- InstanceBegin template="/Templates/template1.dwt" codeOutsideHTMLIsLocked="false" -->
	<head>
		<meta charset="utf-8">
		<!-- InstanceBeginEditable name="doctitle" -->
		<title>店面优惠券设置</title>
		<!-- InstanceEndEditable -->
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/qmsk-1.3.js"></script>
		<script type="text/javascript" src="../js/jquery.pager.js"></script>
		<script type="text/javascript" src="../js/qmsk-1.2.js"></script>
		<script type="text/javascript" src="../js/pagination.js"></script>
		<link href="../css/Pager.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="../js/utils.js"></script>
		<script type="text/javascript" src="../js/formValidator.js"></script>
		<script type="text/javascript" src="../js/formValidatorRegex.js"></script>
		<link href="../css/validator3.css" type="text/css" rel="stylesheet" />
		<link href="../css/style.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="../js/checkLogin.js"></script>
		<script type="text/javascript" src="../js/ajaxfileupload.js"></script>
		<script type="text/javascript" src="../js/ImageBrowsing.js"></script>
		<script charset="utf-8" src="../js/kindeditor.js"></script>
		<script charset="utf-8" src="../js/lang/zh_CN.js"></script>
		<script type="text/javascript" src="../js/editor.js"></script>
		<script type="text/javascript" src="../js/find.js"></script>
		<script type="text/javascript" src="../js/commonSelecter.js"></script>
		<!-- InstanceBeginEditable name="head" -->
		<!-- InstanceEndEditable -->
		<script type="text/javascript" src="setCoupons.js"></script>
	</head>

	<body>

		<div id="yinying1"></div>
		<div id="yinying"></div>

		<form id="valiForm" >
			<div id="window_change" class="member_search hideDiv" style="width:520px;">
				<div class="closeTop">
					<span id="closeThe"><img src="../images/close.png"></span>
				</div>
				<input type="hidden" id="doflag">
				<input type="hidden" id="shopflag">
				<input type="hidden" id="defaultCflag">
				<input type="hidden" id="updateId">
				<p>
					<label><span> 店面：</span> <select id="shopName2" onclick="showShopList('2')" ></select> </label>
				</p>
				<p>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;券名称：</span>
						<input type="text" class="" id="couponName">
					</label>
				</p>
				<p>
					<span>优惠券图片：</span>
					<input id="imageUrl" class="isDisabled" type="text">
					<input class="btn" type="button" value="...">
					<input id="upload" class="file isDisabled" type="file" name="upload">
					<span id="imgSrc" class="onlyImgSrc"><img src="../images/img_activities1.jpg"></span>
				</p>
				<p>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;券标记：</span>
						<input type="text" class="" id="couponFlag">
					</label>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;劵金额：</span>
						<input type="text" class="" id="faceValue">
					</label>
				</p>
				<p>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;券数量：</span>
						<input type="text" class="" id="totalNum">
					</label>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;类型：</span>
						<select id="addType">
							<option value="0">客户申请</option>
							<option value="1">后台发放</option>
							<option value="3">相对有效期</option>
						</select> </label>
				</p>
				<p>
					<label><span>生效日期：</span>
						<input type="text" id="dtBegin" class="doubledate ipticon" readonly>
					</label>
					<label><span>失效日期：</span>
						<input type="text" id="dtEnd" class="doubledate ipticon" readonly>
					</label>
				</p>
				<p>
					<label><span>首页：</span>
						<input type="text" id="indexUrl" style="width: 250px"  readonly>
						<input id="editIndex_btn" type="button"  value="编辑首页" class="btn"  />
					</label>
				</p>
				<p>
					<label><span>描述：</span> 						<textarea id="memo" style="width: 390px;height: 50px;" placeholder="(255字以内)"  ></textarea> </label>
				</p>
				<p>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;栏目：</span> <select id="column" onclick="columnSelecter(this)"></select> </label>
					<label><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态：</span>
						<select id="status">
							<option value="0">正常</option>
							<option value="1">非正常</option>
						</select> </label>
				</p>
				<div class="submit_btn">
					<input type="button" onclick="doAddOrUpdate()" value="保存信息" class="common_btn" id="close_this">
				</div>
			</div>
		</form>
		<div id="shopShow" class="hideDiv" >
			<div style="float:right;margin-bottom:5px;width:20px;height:20px;line-height:20px;text-align:center;background-color:#eee;margin-bottom:5px;border:1px solid #ccc;" >
				<span style="cursor: pointer;font-size: 14px;" onclick="closeShopShow();" >X</span>
			</div>
			<div class="bottom_search">
				<div class="serWrapper">
					<input type="text" id="searchName" class="txt">
					<strong class="refresh" onclick="$('#searchName').val('')">清空</strong>
				</div>
				<input type="button" style="width:auto;margin-left:5px;" class="common_btn" value="查询" onclick="search2()">
			</div>
			<table   id="shopList" cellpadding="4" cellspacing="0" border="1" width="100%">
				<thead>
					<tr>
						<th>店面ID</th>
						<th>店面名称</th>
						<th>电话</th>
						<th>操作</th>
					</tr>
				</thead>
			</table>
			<div id="shopPager"></div>
		</div>
		<!-- InstanceBeginEditable name="EditRegion3" -->
		<script type="text/javascript" src="../js/doubleDate2.0.js"></script>
		<script type="text/javascript">
			$(function() {

				$('.doubledate').kuiDate({
					className : 'doubledate',
					isDisabled : "0" // isDisabled为可选参数，“0”表示今日之前不可选，“1”标志今日之前可选
				});

			});
		</script>
		<div class="container" id="container">
			<div class="container_R fr">
				<div class="place">
					店面优惠券设置
				</div>
				<div class="member_search">
					<p>
						<span>
							<input type="checkbox" id="shopIsChoosed" style="width:auto;height:auto;border:none;">
							店面：</span>
						<select id="shopName" onclick="showShopList('0')" style=";height:20px; " disabled="disabled"></select>
						<span>券名称：</span>
						<input type="text" id="searchCouponName" class="absoluteTxt">

						<span>栏目：</span>
						<select id="searchColumn" onclick="columnSelecter(this)"></select>
					</p>
					<p>
						<span>类型：</span>
						<select id="searchType">
							<option value="">所有</option>
							<option value="0">客户申请</option>
							<option value="1">后台发放</option>
							<option value="3">相对有效期</option>
						</select>
						<span>状态：</span>
						<select id="searchStatus">
							<option value="">所有</option>
							<option value="0">正常</option>
							<option value="1">非正常</option>
						</select>
						<input type="button" value="查询" class="btn" onclick="search()">
					</p>
				</div>
				<table width="100%" class="member_list" cellpadding="0" cellspacing="1" border="0" id="memberList">
					<caption>
						<strong>优惠劵列表 <span id="sup">共0条</span></strong>
						<input type="button" id="addColumn" value="增加" class="common_btn">
					</caption>
					<thead>
						<tr>
							<th>图片</th>
							<th>店面</th>
							<th>栏目</th>
							<th>券名称</th>
							<th>券标记</th>
							<th>创建时间</th>
							<th>面值</th>
							<th>卷数量</th>
							<th>已领取</th>
							<th>生效日期</th>
							<th>失效日期</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody></tbody>
				</table>
				<div id="NoResult"  class="Nothing" style="text-align:center;display: none;">
					无符合条件的数据！
				</div>
				<div id="pager" style="float: right;"></div>
			</div>
			<div class="fc"></div>
		</div>
		<!-- InstanceEndEditable -->
		<script type="text/javascript" src="../js/header.js"></script>
		<script type="text/javascript" src="../js/left.js"></script>
		<script type="text/javascript" src="../js/footer.js"></script>
		<script type="text/javascript">
			showTab(1, 2);
			clearThis("absoluteTxt");
		</script>
	</body>
	<!-- InstanceEnd -->
</html>
